<#include "/WEB-INF/view/inc/inc.html"/>
<@html qmask=0>
<div class="container">
    <div class="row">
        <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
            <div class="clearfix">
                <h4>项目列表</h4>
                <@bsuls lis=listmyul icons='th-list,heart,info-sign,eye-open,remove' />
            </div>

        </div>
        <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
            <div class="jumbotron" style="padding: 20px;">
                <h2>大家的项目</h2>

                <p style="margin:0;font-size: 15px;">
                    项目就是，长期的一个目标和具体的执行计划。<br>
                    可以关注，删除，查看进度哦<br>
                    记得分享监督。
                </p>
            </div>

        </div>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function () {
        $("#myNav").affix({
            offset: {
                top: 125
            }
        });

        var dddddfunc =function (){
            alert($(this).parent().attr("id"));
            var data = {};
            data["ids"] = $(this).parent().attr("id");
            data["ids1"] = "ddd";
            data["ids2"] = {"dd":1,"ss":"222rr","12":[1,2],"obj":{a:1,b:2,c:3,d:4,f:5,g:6,h:7,i:8,j:9,k:10,l:11}};
            data["ids3"] = [1,2,3];

            ci.debug(data);
        };
        var delfunc =function (){
            var id = $(this).parent().attr("id");
            id = id.replace("id","");
            $.dely(id,"project");
        };
        var listfunc =function (){
            var id = $(this).parent().attr("id");
            id = id.replace("id","");
            qiao.to("${base}/y/c/plan/"+id);
        };

        $(".th-listclass").kq_bind("click",listfunc,{'title':"计划列表"});
        $(".heartclass").kq_bind("click",dddddfunc,{'title':"参与"});
        $(".info-signclass").kq_bind("click",dddddfunc,{'title':"详情"});
        $(".eye-openclass").kq_bind("click",dddddfunc,{'title':"关注"});
        $(".removeclass").kq_bind("click",delfunc,{'title':"删除"});

        $('ul>li').kq_dbclickedit(function(editid){
            var editval=$("#"+editid).val();//获取更改内容
            $("#"+editid).parent().html(editval); //将点击的td中原内容改为输入的新内容

            var data = {};
            data["row.y_project_name"] = editval;
            if(editid){
                data["row.id"] = editid.replace("edit_id","");
            }else{
                data["row.id"] = "";
            }
            $.savey("project",data);
        });
    });



</script>
<@backtotop/>
</@html>
